﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:Microsoft.DevDiv.Wpf.Samples.Controls">

  <Style TargetType="{x:Type local:CommandTextBox}">
    <Style.Triggers>
      <Trigger Property="AcceptsReturn" Value="True">
        <Setter Property="CommandModifierKeys" Value="Ctrl" />
      </Trigger>
    </Style.Triggers>
  </Style>

    <Style x:Key="{x:Static local:CommonStyles.ItemsControlThumbnailStyleKey}" TargetType="{x:Type ItemsControl}">
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
    <Setter Property="ItemsPanel">
      <Setter.Value>
        <ItemsPanelTemplate>
          <WrapPanel />
        </ItemsPanelTemplate>
      </Setter.Value>
    </Setter>
    <Setter Property="ItemContainerStyle">
      <Setter.Value>
        <Style TargetType="{x:Type Control}">
          <Setter Property="HorizontalAlignment" Value="Stretch" />
          <Setter Property="VerticalAlignment" Value="Stretch" />
          <Setter Property="Padding" Value="5" />
          <Setter Property="Width" Value="100" />
        </Style>
      </Setter.Value>
    </Setter>
  </Style>
</ResourceDictionary>
